<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>字典管理</title>
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <link rel="stylesheet" href="/static/component/markdown/editor/editormd.min.css" />
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script src="/static/component/pear/module/ruinuo/sortable.js"></script>
    <script src="/static/component/pear/module/ruinuo/xm-select.js"></script>
</head>
<body>

<div class="view_body"></div>
<script type="text/html" id="view_body_data">
    <form class="layui-form" action="">
        <div class="mainBox ruinuo_box {{= form_config.form_label}}">
            <div class="main-container layui-row layui-col-space10 label_con">
                <div class="design-box layui-col-xs12 layui-col-md12 name_box {{#  if(layui.engine_form.PowerField('name')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">名称</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="name" id="focus_4c11_1713773633001_15633" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.name}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 num_box {{#  if(layui.engine_form.PowerField('num')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">编码</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="num" id="focus_8223_1713773634058_70321" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.num}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 type_box {{#  if(layui.engine_form.PowerField('type')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">类型</label>
<div class="layui-input-block " data_tag="radio" data_source="options_type">
{{#  layui.each(d.source.options_type.rows, function(index, item){ }}
<input type="radio"  name="type" id="focus_282d_1713773648395_80006" type="text" lay-tag="radio" value="{{= item.value }}" {{#  if(item.value==d.detail.type){ }}checked{{#  } }} title="{{= item.label }}" lay-filter="radio_filter"  lay-tag="radio">
{{#  }); }}
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 config_box {{#  if(layui.engine_form.PowerField('config')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">配置</label>
<div class="layui-input-block " data_tag="jsontable" data_source="">
<textarea name="config" id="focus_41b8_1713773761898_42533" class="layui-input" style="display: none"  lay-filter="json_filter">{{= d.detail.config}}</textarea>
<div class="table_41b8_1713773761898_42533 f_table">
<table id="table_41b8_1713773761898_42533" lay-filter="filter_41b8_1713773761898_42533"></table>
</div>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 mode_id_box {{#  if(layui.engine_form.PowerField('mode_id')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">选择模块</label>
<div class="layui-input-block " data_tag="select" data_source="mode_list">
<select name="mode_id" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
{{- layui.engine_form.SelectOption(d.source.mode_list.rows,d.detail.mode_id)}}</select>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 url_box {{#  if(layui.engine_form.PowerField('url')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">链接地址</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="url" id="focus_938f_1713773713976_66286" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.url}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 label_box {{#  if(layui.engine_form.PowerField('label')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">显示字段</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="label" id="focus_17ff_1713773715521_42916" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.label}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 value_box {{#  if(layui.engine_form.PowerField('value')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">保存字段</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="value" id="focus_92c9_1713773716677_68441" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.value}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 is_token_box {{#  if(layui.engine_form.PowerField('is_token')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">验证token</label>
<div class="layui-input-block " data_tag="radio" data_source="yesno">
{{#  layui.each(d.source.yesno.rows, function(index, item){ }}
<input type="radio"  name="is_token" id="focus_2541_1713773734550_64432" type="text" lay-tag="radio" value="{{= item.value }}" {{#  if(item.value==d.detail.is_token){ }}checked{{#  } }} title="{{= item.label }}" lay-filter="radio_filter"  lay-tag="radio">
{{#  }); }}
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 notes_box {{#  if(layui.engine_form.PowerField('notes')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">备注</label>
<div class="layui-input-block " data_tag="textarea" data_source="">
<textarea  name="notes" id="focus_67a5_1713773952411_80707" type="textarea" lay-tag="textarea" autocomplete="off" class="layui-textarea" style="min-height: 100px;">{{= d.detail.notes}}</textarea></div>
</div>

            </div>
        </div>
        <div class="bottom">
            <div class="ruinuo-button-con">
                <button type="button" class="pear-btn pear-btn-primary" onclick="SendForm()">
                    <i class="layui-icon layui-icon-ok"></i>提交
                </button>
                <button type="reset" class="pear-btn">
                    <i class="layui-icon layui-icon-refresh"></i>重置
                </button>
            </div>
        </div>
    </form>
</script>
<script>

    function FormBind()
    {
        let tableconfig={"col":"12","tag":"jsontable","cols":[{"field":"label","title":"名称","update":"input","required":1,"minWidth":160},{"field":"value","title":"编码","update":"input","required":1,"minWidth":160}],"help":"","hide":"2","field":"config","title":"配置","value":"","elem_id":"41b8_1713773761898_42533","required":"2","hide_label":"2"};
layui.engine_form.BindJsonTable(tableconfig);

    }
</script>
<script src="/static/js/admin/options/config.js?t={:time()}"></script>
<script src="/static/component/markdown/editor/editormd.min.js"></script>
<script src="/static/js/admin/options/form.js?t={:time()}"></script>
<script src="/static/component/pear/module/jQuery.print.js"></script>
</body>
</html>